package eteam.aps.model.vo.scan;

import eteam.aps.common.constant.ScanType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * 扫描信息
 *
 * @author LiuLei
 */
@ApiModel(description = "扫描信息展示", value = "ScanProcessListShow")
public class ScanProcessShow<T> {


    @ApiModelProperty("扫描状态码【-1 异常，0 正常，1 工单信息，2 工序，3 人员】")
    private int scanCode = ScanType.OK;

    @ApiModelProperty("扫描提示信息")
    private String scanMsg;

    @ApiModelProperty("数据")
    private T data;

    public ScanProcessShow() {
    }

    public ScanProcessShow(int scanCode, String scanMsg) {
        this.scanCode = scanCode;
        this.scanMsg = scanMsg;
    }

    public ScanProcessShow(int scanCode, String scanMsg, T data) {
        this.scanCode = scanCode;
        this.scanMsg = scanMsg;
        this.data = data;
    }

    public int getScanCode() {
        return scanCode;
    }

    public void setScanCode(int scanCode) {
        this.scanCode = scanCode;
    }

    public String getScanMsg() {
        return scanMsg;
    }

    public void setScanMsg(String scanMsg) {
        this.scanMsg = scanMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


}

